package com;

import org.springframework.context.annotation.*;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -28,4 +29,10 @@ public class AppConfig {
}
        };
                }
@Bean
CommonsMultipartResolver multipartResolver() {
    CommonsMultipartResolver multipart=new CommonsMultipartResolver();
    multipart.setMaxUploadSize(10000000);
    return multipart;
}
}